/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-03-24 13:13:44
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-06-01 09:54:00
 */
import http from "@/common/request";
export interface AjaxResult {
  status: string;
  code: number;
  message: string;
  data: null | any;
}

const proxyName = process.env.NODE_ENV === "development" ? "MOCK" : "API";
http.parseRoute("Demo", {
  tables: { url: `${proxyName}/demo/list` },
  tableDel: { url: `${proxyName}/demo/list/del` },
  tableInfo: {
    url: `${proxyName}/backend/admin/demo/table/info`,
    option: { type: "get" }
  } // http['Demo'].tableInfo({ tableName: 1 })
});

// http['demo'].tables();

// http.Kms.createKeyConf().then(res => {
//     setState({
//       listUse: res.listUse,
//       listEncrypt: res.listEncrypt,
//       materialSource: res.materialSource
//     });
//   });
